//init tinyMCE editor
//tinyMCE_GZ.init
//(
//	{
//		disk_cache : true,
//		debug : false
//	}
//);

tinyMCE.init
(
	{
		theme : "advanced",
		mode : "exact",
		elements : "content",
		save_callback : "customSave",
		width : "100%",
		content_css : "example_advanced.css",
		extended_valid_elements : "a[href|target|name]",
		plugins:"emotions,preview",
		theme_advanced_buttons1 : "fontsizeselect,forecolor,separator,bold, italic, underline,strikethrough, separator, bullist, numlist, outdent, indent, separator, justifyleft, justifycenter, justifyright ,separator, link, unlink, image,emotions, wordpress, separator, undo, redo, separator,removeformat,separator,preview",
		theme_advanced_buttons2 : "",
		theme_advanced_buttons3 : "",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		paste_use_dialog : false,	
		theme_advanced_resizing : true,	
		theme_advanced_resize_horizontal : false,
		relative_urls : false,	
		remove_script_host : false,
		force_p_newlines : true,	
		force_br_newlines : false,		
		convert_newlines_to_brs : false,
		remove_linebreaks : true		
	}
);
	
function customSave(id, content)
{
	// alert(id + "=" + content);
}